﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="接箍车丝明细.aspx.cs" Inherits="syc.ZhiJian.Report.接箍车丝明细" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
    <script src="../jquery.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript" >
        
        //PAGE_LOAD()
        $(document).ready(function() {
                 //截止日期默认取当天
                    $('#Date1').change(function() {
                        if ($('#Date2').val() == "") {
                            $('#Date2').val($('#Date1').val());
                        }
                    });
                    //清空两个日期框
                    $('#clear').click(function() {
                        $('#Date1').val("");
                        $('#Date2').val("");
                    });
        });						
    </script>
</head>
<body>
    <form id="form1" runat="server">
  
   <div class="hooo">
        <div id="wintop" class="wintop"><span lang="zh-cn"><u>接箍车丝质检统计</u></span></div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel" Height="36px">
  
        <table>
        <tr id="row2" runat="server">
        <td>         
        <span style="width:220px;text-align:right;">
            起始日期：<asp:TextBox ID="Date1" runat="server" CssClass="intxt1" Width="120px" AutoPostBack="true"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date1').value, document.getElementById('Date1'));" />
        </span>
        </td>
        
        <td>
        <span style="width:220px;text-align:right;">
            截止日期：<asp:TextBox ID="Date2" runat="server" CssClass="intxt1" Width="120px" AutoPostBack="true"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date2').value, document.getElementById('Date2'));" />
        </span>
        <input type="button" class="smallbutton" id="clear" value="清空日期"/>
        </td>
        
        <td>
        &nbsp;&nbsp;产品:
        </td>
        <td>
        <asp:DropDownList ID="DList_Produce" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DList_month_SelectedIndexChanged">
            <asp:ListItem Value="1">油管接箍(J55)</asp:ListItem>
            <asp:ListItem Value="2">套管接箍(J55)</asp:ListItem>
            <asp:ListItem Value="3">油管接箍(N80Q)</asp:ListItem>
            <asp:ListItem Value="4">套管接箍(N80Q)</asp:ListItem>
        </asp:DropDownList>
        </td>
        
        <td>&nbsp;&nbsp;&nbsp;<asp:Button ID="Query" runat="server" CssClass="button" Text="生成报表" onclick="Query_Click" /></td>
        <td><asp:Button ID="Button1" runat="server" CssClass="button" Text="导出" onclick="Button1_Click" /></td>
        </tr>
        </table>

        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" CssClass="panel2">
        <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt" Visible="True"></asp:Label>
        </asp:Panel> 
    

        <div align="center" id="report"">    
                <h1 style="text-align: center;">
            <%=Date1.Text%>到<%=Date2.Text%>接箍车丝质检统计</h1>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" style="text-align: center" BorderColor="Black" 
                BorderStyle="Solid" BorderWidth="2px" GridLines="Both" CellPadding="0" CellSpacing="1" OnRowDataBound="MyGrid_RowDataBound">
            <RowStyle Height="40px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"/>
            <Columns>
                <asp:BoundField DataField="名称" HeaderText="名称" 
                    SortExpression="名称" >
                </asp:BoundField>
                <asp:BoundField DataField="类别" HeaderText="类别" 
                    SortExpression="类别" ItemStyle-Width="100" /> 
                <asp:BoundField DataField="日期" HeaderText="日期" 
                    SortExpression="日期" DataFormatString="{0:d}" ItemStyle-Width="200" />
                <asp:BoundField DataField="工段" HeaderText="工段" 
                    SortExpression="工段" ItemStyle-Width="100" />                    
                <asp:BoundField DataField="车丝机" HeaderText="车丝机" 
                    SortExpression="车丝机" ReadOnly="True" ItemStyle-Width="100">
                </asp:BoundField>    
                <asp:BoundField DataField="支数" HeaderText="支数" 
                    SortExpression="支数" ReadOnly="True" ItemStyle-Width="300">
                </asp:BoundField>
                <asp:BoundField DataField="原因" HeaderText="原因" 
                    SortExpression="原因" ReadOnly="True" ItemStyle-Width="300">
                </asp:BoundField>
            </Columns>
            <HeaderStyle Height="40px" />
        </asp:GridView>
        </div>
    
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
            SelectCommand=""></asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
